FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER liusongs(745177066@qq.com)

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /home/devsoft/springboot_dev

WORKDIR home/devsoft/springboot_dev

ADD ./target/security-springboot.jar  ./

EXPOSE 18081

CMD java -jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xms512m -Xmx512m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC  security-springboot.jar